#pragma once
#include "base/core/os/os_head.h"
#include <stdio.h>
#include <stdint.h>

#if defined(WIN32)
typedef HMODULE DLL_HANDLE;
#else  // defined(OS_LINUX)
typedef void* DLL_HANDLE;
#endif  // OS




class DynamicLib 
{
private:
	DLL_HANDLE handle_;

public:
	DynamicLib();
	~DynamicLib();

	int   Open(const char* dll_file);
	void* Func(const char* func_name);
};
